# Default makefile for gpc++. Very simple as my knowledge of makefiles is limited

NAME = gp
CFLAGS =
# -O4 include the flags below if you want debug information in code
#  -g 

#tells the system how to make the object files specified below
.cc.o:
	g++ $(CFLAGS) -c $<

OBJ = function.o terminal.o gene.o gp.o gpv.o  pop.o create.o compare.o generate.o cross.o allelem.o eval.o exit.o gprand.o gpmain.o rungps.o loadsave.o select.o tourn.o ant.o gpant.o trail.o

# for gplawn problem include files below in OBJ list
# gplawn.o mower.o lawn.o

#for symbolic regression include file below in OBJ list
# symbreg.o

#for santa fe trail / artificial ant problem include
# gpant.o ant.o trail.o
LIB = 

$(NAME) : $(OBJ)
	g++ -o $(NAME) $(OBJ) $(LIB)

clean:
	-rm -f $(OBJ)


